

package com.hazelcast.internal.services;

import java.util.UUID;

/**
 * An interface that can be implemented by an SPI Service so that it can be notified about client disconnects.
 * <p>
 * This is useful if a service needs to clean up resources when a client leaves, e.g. release locks.
 */
public interface ClientAwareService {

    /**
     * Invoked when a client disconnects from a member.
     *
     * @param clientUuid the UUID of the client that disconnected from a member
     */
    void clientDisconnected(UUID clientUuid);
}
